package com.hutao.medical.mapper.print;

import com.hutao.medical.common.util.Params;
import com.hutao.medical.pojo.print.Print;
import com.hutao.medical.pojo.print.PrintExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface PrintMapper {
    int countByExample(PrintExample example);

    int deleteByExample(PrintExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Print record);

    int insertSelective(Print record);

    List<Print> selectByExample(PrintExample example);

    Print selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Print record, @Param("example") PrintExample example);

    int updateByExample(@Param("record") Print record, @Param("example") PrintExample example);

    int updateByPrimaryKeySelective(Print record);

    int updateByPrimaryKey(Print record);
    
    /**
     *	查询打印信息
     * @param params
     * @return
     */
    List<Map<String,Object>> getPrintList(Params params);
    
    /**
     * 查询打印信息总数
     * @param params
     * @return
     */
    int getPrintListCount(Params params);
    
    /**
     * 根据uniqueId查询Print信息
     * @param uniqueId
     * 			唯一id
     * @return
     */
    Print getPrintByUniqueId(@Param("uniqueId")String uniqueId);
    
    int getPrintdetailIdByUniqueId(@Param("uniqueId")String uniqueId,@Param("medicalRecord")String medicalRecord);
}